function replaceCacheLoginUrl(jDom) {
	 
	if (store.get('encryptFundAccount')) {
		form = $("<form></form>")
        form.attr('action',"../pn/login.do")
        form.attr('method','post')
        input1 = $("<input type='hidden' name='fundAccount' value='" + store.get('encryptFundAccount') + "'/>")
        input2 = $("<input type='hidden' name='mobileTel' value='" + store.get('encryptMobileTel') + "' />")
        form.append(input1)
        form.append(input2)
        form.appendTo("body")
        form.css('display','none')
        form.submit();
	 }
}

function replaceCacheLoginUrl2(jDom) {
    if (store.get('loginCache')) {
    	//var loginUrl = jDom.attr("href");
    	var loginUrl = "?" + store.get('loginCache');
    	//jDom.attr("href", loginUrl);
    	window.location.href="../pn/login.do"+loginUrl;
    }
}

function getUrlParam(name) {
 	var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
 	var r = window.location.search.substr(1).match(reg);  //匹配目标参数
	if (r!=null) return decodeURI(r[2]); return null; //返回参数值
 } 


function 
checkMobile(str) {
   var re = /^1\d{10}$/;
   if (re.test(str)) {
       return true;
   } else {
       return false;
   }
}